body {
    padding: 60px 0;
}

.homepage {
    background: #fff;

    >div {
        color: #333;
        width: 400px;
        margin: 50px auto;

        >img {
            width: 100%;
            height: 200px;
        }

        text-align: center;

        >.title {
            font-size: 28px;
            margin: 10px 0 30px;
        }

        >.buttonBox {
            display: flex;
            justify-content: space-around;

            >.btn {
                display: flex;
                flex-direction: column;
                align-items: center;
                margin-bottom: 80px;

                &:hover {
                    cursor: pointer;
                    color: #f03;
                }

                >.english {
                    font-size: 36px;
                }

                >.chinese {
                    font-size: 18px;
                }
            }
        }

        >.bottom {
            font-size: 13px;
            text-align: center;

            >span {
                color: #999;
                margin: 0 5px;

                &:hover {
                    background-color: #ff0033;
                    color: #fff;
                    cursor: pointer;
                }
            }
        }
    }
}

.maxwidth {
    width: 960px;
    margin: 0 auto;
}

//  头部
header {
    position: fixed;
    top: 0;
    height: 40px;
    width: 100%;
    background: linear-gradient(#FFFFFF, #F2F2F2);
    border-bottom: 1px solid #d3d3d3;
    z-index: 1000;
    box-shadow: 0 0 5px #ccc;
    overflow: visible;
    color: #777;
    font-size: 14px;
    font-weight: bold;
    display: none;

    >section {
        display: flex;
        justify-content: space-between;

        >.left {
            display: flex;

            >.logobox {
                padding-right: 20px;

                >span {
                    font-size: 18px;
                    font-weight: normal;
                }
            }
        }

        div {
            height: 38px;
            padding: 0 14px;
            line-height: 38px;

            &:hover {
                cursor: pointer;
                color: #333;
            }

        }

        .isChecked {
            background-color: #E5E5E5;
            color: #555555;
        }
    }
}


.openBox {
    display: none;

    h2 {
        font-weight: normal;
        font-size: 20px;
        color: #555;
        margin-bottom: 17px;
    }

    >.inputBox {
        font-size: 13px;
        margin-bottom: 40px;

        >input {
            height: 38px;
            width: 220px;
            color: #333;
            padding: 8px;
            border: 1px solid #D9D9D9;
            margin: 0 4px;
        }

        >button {
            background: #ff0033;
            filter: none;
            border: 1px solid #ff0033;
            color: #fff;
            display: inline-block;
            padding: 7px;
        }
    }

    >.nocapsule {
        display: none;
        padding: 8px;
        width: 400px;
        color: #900;
        background-color: #F5F5B5;
        border: 1px solid #DECA7E;
        font-size: 13px;
    }

    >.tipbox {
        
        >h2 {
            color: #333;
            font-size: 18px;
            line-height: 42px;
            font-weight: normal;
        }

        >.content {
            padding: 15px 20px;
            border: 1px solid #ff0033;
            font-size: 13px;
            color: #333;
            white-space: pre-wrap;
        }

        .timeTip span {
            font-weight: bold;
        }

    }
}

.add {
    display: none;

    h2 {
        font-weight: normal;
        font-size: 20px;
        color: #555;
        margin-bottom: 17px;
    }

    >.writingBox {
        >.writeBox {
            font-size: 13px;

            >p {
                display: block;
                margin-bottom: 2px;
            }

            >div>input {
                height: 38px;
                width: 220px;
                color: #333;
                padding: 8px;
                border: 1px solid #D9D9D9;
                margin: 0 4px;
            }

            .errTip {
                color: #900;
                margin-bottom: 5px;
                display: none;
            }

            >div>span {
                padding: 0;
                margin: 0;
                color: #999;
                background-color: #f6f6f6;
            }

            >div>textarea {
                width: 100%;
                height: 178px;
                padding: 8px;
                width: 690px;
                resize: vertical;
            }

            #tipArea {
                height: 78px;
            }
        }

        >button {
            background: #ff0033;
            filter: none;
            border: 1px solid #ff0033;
            color: #fff;
            display: inline-block;
            padding: 7px;
            margin-top: 20px;
        }
    }

    >.addOkBox {
        display: none;

        >div {
            font-size: 13px;
            color: #333;

            >p {
                margin-bottom: 2px;
            }

            >div>input {
                height: 38px;
                width: 220px;
                color: #333;
                padding: 8px;
                border: 1px solid #D9D9D9;
                margin: 0 4px;
            }
        }
    }
}